<template>
    <div>
        <nav>
            <!-- exact属性表示路由精确匹配时使用类样式 -->
            <router-link tag="button" active-class="active" to="/home" exact>首页</router-link> |
            <router-link tag="button" active-class="active" to="/personal" exact>个人中心</router-link> |
            <router-link tag="button" active-class="active" to="/cart" exact>购物车</router-link> |
            <router-link tag="button" active-class="active" to="/login">登录</router-link> |
            <router-link tag="button" active-class="active" to="/register">注册</router-link> |
        </nav>
    </div>
</template>
<script src="../assets/js/MynavView.js"></script>